package com.heartbeat.domain;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="content"
 *     
*/
public class Content implements Serializable {

    /** identifier field */
    private Integer id;

    /** persistent field */
    private int siteId;

    /** persistent field */
    private int pageId;

    /** nullable persistent field */
    private String title;

    /** nullable persistent field */
    private String path;

    /** nullable persistent field */
    private Byte type;
    
    private Boolean hasUploaded;

    /** full constructor */
    public Content(int siteId, int pageId, String title, String path, Byte type, Boolean hasUploaded) {
        this.siteId = siteId;
        this.pageId = pageId;
        this.title = title;
        this.path = path;
        this.type = type;
        this.hasUploaded = hasUploaded;
    }

    /** default constructor */
    public Content() {
    }

    /** minimal constructor */
    public Content(int siteId, int pageId) {
        this.siteId = siteId;
        this.pageId = pageId;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Integer"
     *             column="id"
     *             unsaved-value="0"
     *         
     */
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /** 
     *            @hibernate.property
     *             column="siteId"
     *             length="5"
     *             not-null="true"
     *         
     */
    public int getSiteId() {
        return this.siteId;
    }

    public void setSiteId(int siteId) {
        this.siteId = siteId;
    }

    /** 
     *            @hibernate.property
     *             column="pageId"
     *             length="10"
     *             not-null="true"
     *         
     */
    public int getPageId() {
        return this.pageId;
    }

    public void setPageId(int pageId) {
        this.pageId = pageId;
    }

    /** 
     *            @hibernate.property
     *             column="title"
     *             length="150"
     *         
     */
    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    /** 
     *            @hibernate.property
     *             column="path"
     *             length="100"
     *         
     */
    public String getPath() {
        return this.path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    /** 
     *            @hibernate.property
     *             column="type"
     *             length="2"
     *         
     */
    public Byte getType() {
        return this.type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("id", getId())
            .toString();
    }

	public Boolean getHasUploaded() {
		return hasUploaded;
	}

	public void setHasUploaded(Boolean hasUploaded) {
		this.hasUploaded = hasUploaded;
	}

    
}
